import request from '@/utils/request';

const flowerKnowledgeBaseURL = '/flowerKnowledge'

export function getFlowerKnowledgeDetailById(params){
    return request({
        url: flowerKnowledgeBaseURL+'/getFlowerKnowledgeDetailById',
        method: 'get',
        params
    })
}

export function deleteFlowerKnowledgeById(data){
    return request({
        url: flowerKnowledgeBaseURL+'/deleteFlowerKnowledgeById',
        method: 'post',
        data
    })
}

export function createFlowerKnowledge(data){
    return request({
        url: flowerKnowledgeBaseURL+'/createFlowerKnowledge',
        method: 'post',
        data
    })
}

export function updateFlowerKnowledge(data){
    return request({
        url: flowerKnowledgeBaseURL+'/updateFlowerKnowledge',
        method: 'post',
        data
    })
}

export function getFlowerKnowledgePage(params) {
    return request({
        url: flowerKnowledgeBaseURL+'/getFlowerKnowledgePage',
        method: 'get',
        params
    })
}

export function getAllFlowerKnowledgeData(params) {
    return request({
        url: flowerKnowledgeBaseURL+'/getAllFlowerKnowledgeData',
        method: 'get',
        params
    })
}

export function getFlowerKnowledgeTotalCount(params) {
    return request({
        url: flowerKnowledgeBaseURL+'/getFlowerKnowledgeTotalCount',
        method: 'get',
        params
    })
}

export function getRandomFlowerKnowledgeList(params){
    return request({
        url: flowerKnowledgeBaseURL+'/getRandomFlowerKnowledgeList',
        method:'get',
        params
    })
}

